import React from 'react';
import {hot} from 'react-hot-loader';

import BDTab from './tab';
import BDLogin from './login';
import BDReg from './reg';
import BDUser from './user';
import BDDetail from './detail';
import BDAbout from './about';
import BDAddress from './address';
import BDOrder from './order';
import BDAddressEdit from './addressedit';

import { BrowserRouter as Router, Route, Link} from "react-router-dom"

const App = () => (
    <Router>
        <div className="homePage">
            <Route exact path="/" component={ BDTab }></Route>
            <Route  path="/user" component={ BDUser }></Route>
            <Route  path="/detail" component={ BDDetail}></Route>
            <Route path="/login" component={ BDLogin }></Route>
            <Route path="/reg" component={ BDReg }></Route>
            <Route path="/about" component={ BDAbout }></Route>
            <Route path="/address" component={ BDAddress }></Route>
            <Route path="/addressedit" component={ BDAddressEdit}></Route>
            <Route path="/order" component={ BDOrder }></Route>

        </div>
    </Router>
)

export default hot(module)(App);